var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var luckyModel = require('../../app/models/luckyModel');
var config = require('../config');

suite('测试luckyModel', function () {
    setup(function (done) {
        luckyModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            luckyModel = model;
            luckyModel.toJSON();
            done();
        });
    });

    //suite('subGlodFreeNum', function () {
    //test('扣除金币抽奖免费次数', function () {
    //luckyModel.subGlodFreeNum();
    //console.log(luckyModel.getGlodFreeNum());
    //luckyModel.save();
    //});
    //});
});
